using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;

namespace cklibirc
{
    public class ConnectionManager
    {
        private ConnectionManager()
        {

        }

        private static ConnectionManager _instance = new ConnectionManager();
        
        public static ConnectionManager Instance
        {
            get
            {
                return _instance;
            }
        }

        private List<IrcConnection> _connections;

        /// <summary>
        /// A list of the open connections to IRC servers.
        /// </summary>
        public List<IrcConnection> OpenConnections
        {
            get
            {
                return _connections;
            }
        }

        public void OpenConnection(string hostname, int portnumber)
        {
            IrcConnection newConnection = new IrcConnection();
            newConnection.Connect(hostname, portnumber);
            
        }


    }
}
